{% load permission_tags %}
{% load helper_tags %}
<li class="item">
    {% block item %}
    <a class="{% block link_class %}{% endblock %}" href="{% block show_url %}{% endblock %}">
        {% block title %}
        	{{ item.user.username }} {% if item.item_category %}({{ item.item_category }}){% endif %}
        {% endblock %}
        <span class="status">
        	{{ item.views }}x angesehen, hinzugefügt {{ item.datetime|naturalTimeDifference }}
        </span>
    </a>
    <div class="buttonbar">
    	{% requiresobjectpermission 'documents.delete_item' item %}
            <a class="button delete" href="{% block delete_url %}{% endblock %}">
            		Löschen
            </a>
        {% endrequiresobjectpermission %}
		{% requiresobjectpermission 'documents.change_item' item %}
            <a class="button change" href="{% block change_url %}{% endblock %}">
            		Ändern
            </a>
        {% endrequiresobjectpermission %}
    </div>
    <div>
	    	{{ item.comment|linebreaksbr }}
	</div>
	{% endblock %}
</li>